cmake_minimum_required(VERSION 3.8)
project(read_string)
file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var)
message(STATUS "all - ${read_var}")

file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var LENGTH_MAXIMUM 4)
message(STATUS "LENGTH_MAXIMUM 4 - ${read_var}")

file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var LENGTH_MINIMUM 5)
message(STATUS "LENGTH_MINIMUM 5 - ${read_var}")

file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var LIMIT_COUNT 7)
message(STATUS "LIMIT_COUNT 7 - ${read_var}")

file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var LIMIT_INPUT 10)
message(STATUS "LIMIT_INPUT 10 - ${read_var}")

file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var LIMIT_OUTPUT 6)
message(STATUS "LIMIT_OUTPUT 6 - ${read_var}")

file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var NEWLINE_CONSUME)
message(STATUS "NEWLINE_CONSUME - ${read_var}")

file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var NO_HEX_CONVERSION)
message(STATUS "NO_HEX_CONVERSION - ${read_var}")

file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var REGEX "^[a-z]o")
message(STATUS "REGEX \"^[a-z]o\" - ${read_var}")

file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var ENCODING "UTF-8")
message(STATUS "ENCODING \"UTF-8\" - ${read_var}")

file(STRINGS "${PROJECT_SOURCE_DIR}/ReadString.txt" read_var ENCODING "UTF-16LE")
message(STATUS "ENCODING \"UTF-16LE\" - ${read_var}")
